<?php
//$idRecibo = $_REQUEST['idRecibo'];
$idReferencia = $_REQUEST['idReferencia'];
$totalGeral = $_REQUEST['totalGeral'];


$ref = $em->find("Entities\Referencia", $idReferencia);


	
$em->remove($ref);
$erro = "0";
try {
	$em->flush();
} catch (Exception $e) {
	$erro = $e->getMessage();
}

echo "<error>$erro</error>";